import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 按需要引入 element-plus
import { globalRegister } from './gloable'
import { setupStore } from './store'

//引入初始化css
import 'normalize.css'
import './assets/css/index.less'
// 引入el-loading加载动画样式！！！
import 'element-plus/theme-chalk/el-loading.css'
import 'element-plus/theme-chalk/el-message.css'

const app = createApp(App)
// 注册element-plus/其他
app.use(globalRegister)
app.use(store)
setupStore() // 初始化本地数据与vuex互连
app.use(router)
app.mount('#app')
